package com.ying.dogying.dao;

import com.ying.dogying.es.dto.EsPostDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface EsDao extends ElasticsearchRepository<EsPostDto, Long> {

    Page<EsPostDto> findByTitleOrContentLike(@Param("title") String title, @Param("content") String content, @Param("pageable") Pageable pageable);
}
